package file;

import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.nio.CharBuffer;

public class InputDemo {
	public static void main(String[] args) throws IOException {
		FileInputStream fis=new FileInputStream("D:"+File.separator+"good.txt");
		InputStreamReader isr=new InputStreamReader(fis);
		char[] cbuf=new char[1024];
		int b=0;
		while((b=isr.read(cbuf))!=-1){
			System.out.println(new String(cbuf));
		}
		isr.close();
		fis.close();
	}
}
